{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Clustering and Unsupervised Analysis\n",
    "\n",
    "## Clustering Overview\n",
    "<p>This notebook covers different clustering methods. We'll cover both k-means and hierarchical based clustering. We'll also cover how to incorporate SVD into clustering methods. <br><br>\n",
    "\n",
    "Clustering is an unsupervised technique that doesn't require a particular outcome variable. The core idea of clustering follows this logic:<br>\n",
    "<ul>\n",
    "    <li>Identify an object/instance $i$ by its feature vector $X_i=<X_i^1,X_i^2,...,X_m^1>$ </li>\n",
    "    <li>Define a distance function $d(X_i,X_j)$ to measure distance between $X_i$ and $X_j$.</li>\n",
    "    <li>Create distinct groupings of instances that:</li>\n",
    "    <ul>\n",
    "        <li>Minimize intra-group distances</li>\n",
    "        <li>Maximize inter-group distances</li>\n",
    "    </ul>\n",
    "</ul>\n",
    "<br>\n",
    "Note that in the above, if we use a similarity function instead of traditional distance metric (i.e., cosine similarity as opposed to Euclidean distance), we want to maximize similarity within clusters.\n",
    "<br><br>\n",
    "The key questions we often consider when clustering are:\n",
    "<ul>\n",
    "    <li>What is a good distance/similarity function?</li>\n",
    "    <li>How many clusters is appropriate?</li>\n",
    "    <li>How do we interpret/assess the clustering?</li>\n",
    "</ul>\n",
    "<br>\n",
    "We'll explore these in the options below.\n",
    "\n",
    "<br><br>\n",
    "The data we'll use is from the student survey that everyone filled out at the beggining of the class. The survey asked for each student to rank themselves on a scale of 1 to 10 in each of the following DS related skill sets - Visualization, Computer Science, Math, Statistics, Machine Learning, Business, Communication. In the next section we load and do some basic distributions of the results.\n",
    "</p>"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAscAAAEnCAYAAABFWu4xAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIu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9t8I6PLX48nOQn4OPCiMYXyyqq6L8n/AFyT5Cvt\n235vMppQ4I3Ar8yxuctjMxXMxfkNORerqpJ42x8GlcMwsDw2h6XJ0WXL8WKmm35qnyR7AwcCfz+u\ngJLsw+hE/rGqumL37VX1aFU93pY/AeyTZN04Yqmq+9rzTuAvGHVDmW1R03WvstcDN1bVA7tv6PLY\nTANzcUFDy8UHZi7Bt+edc+zTx3HqzZByuH3G0PLYHJYmRJfF8WKmOL0KmBkN+ybgM1U1lm+zrS/z\nh4E7qur35tnnuTN9npMcw+h4rXqxnuRZSQ6YWQZeC9y6225XAW9pI6yPBR6ZdUlsXM5gnkuAXR2b\naWAuLsrQcnH2uepM4Mo59vkU8NokB7c7Aby2rVtzhpTD7ecPMY/NYWlSdDn6j9Ho4K8xumvFr7V1\n7wPe2Jb3A/4MuAv4W+AFY4zllYz6pN0C3NQeJwFvBd7a9nk7cBujO2t8AfiZMcXygvYZN7fPmzk2\ns2MJcEE7dl8GNo35b/UsRifnA2et6/zYTMPDXBx2LjIqaHYATzDqc3k2o7EQ1wJ3Av8ZOKTtuwn4\n0Kz3/mI7n90F/ELfuTYNOTzEPDaHffiYrIcz5EmSJEmNM+RJkiRJjcWxJEmS1FgcS5IkSY3FsSRJ\nktRYHEuSJEmNxbEkSZLUWBxLkiRJjcWxJEmS1Pz/+3Wti9c6p1UAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 1000x600 with 7 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "import pandas as pd\n",
    "import numpy as np\n",
    "import matplotlib.pyplot as plt\n",
    "import os\n",
    "\n",
    "\n",
    "cwd = os.getcwd()\n",
    "datadir = '/'.join(cwd.split('/')[0:-1]) + '/data/'\n",
    "\n",
    "\n",
    "d = pd.read_csv(datadir + 'survey_responses_2018.csv', header = 0, sep=',')\n",
    "dpro = d[['profile_{}'.format(k + 1) for k in range(7)]]\n",
    "dpro.columns = ['Viz', 'CS', 'Math', 'Stats', 'ML', 'Bus', 'Com']\n",
    "\n",
    "fig = plt.figure(figsize = (10, 6))\n",
    "for i in range(7):\n",
    "    plt.subplot(3, 4, i + 1)\n",
    "    plt.hist(dpro[dpro.columns.values[i]])\n",
    "    plt.title(dpro.columns.values[i])\n",
    "\n",
    "fig.tight_layout()\n",
    "\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<p>We can see that most categories have a full range of values. An important question is how correlated are the values to each other. We'll explore this question in two different ways.<br><br>\n",
    "\n",
    "First let's look at the correlation of the different categories.\n",
    "</p>"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYEAAAD8CAYAAACRkhiPAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAAFCZJREFUeJzt3X/wXXV95/HnCxCCDWAhiCJdUEeg\nmIYIEa3tKhRdFXUolpIw3RkznZ3UnVZAl6KOjmg7q2xL1QWmslkL2HEGf6AWxehYNaGjYiHIr+C6\njCAsAWsJIILVCMl7/7gneEm/Se73e+/NSfw8HzPfyTmf87n3vG/uj9f5nHPvOakqJElt2qPvAiRJ\n/TEEJKlhhoAkNcwQkKSGGQKS1DBDQJIaZghIUsMMAUlqmCEgSQ3bq+8CduTAgw6q5/zG4X2XMSdP\ne2xD3yWM5b47f9R3CWN55jN/re8S5mzTxif6LmEsd+39zL5LGMszH1zfdwljuXfzxg1VdfAofXf5\nEHjObxzOZ79ybd9lzMlh37687xLG8vbTPtR3CWM5e9lL+i5hzn5yz0N9lzCWM57zX/suYSxnf/wd\nfZcwlrf85I57Ru3r7iBJapghIEkNMwQkqWGGgCQ1zBCQpIYZApLUM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rte\nbec5AVieZHgU+dKuf1/2HXo/BnhTVW1i8IWOTwHrgB8w2CUHg/C9ututG+BtO7tg2O579RwGr69b\ngALOq6p/6QKuV/5iWJIa1sTuIEnSzAwBSWqYISBJDTMEJKlhhoAkNcwQkKSGGQKS1DBDQJIa9v8B\nxImvhyIuFeMAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 600x400 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Viz</th>\n",
       "      <th>CS</th>\n",
       "      <th>Math</th>\n",
       "      <th>Stats</th>\n",
       "      <th>ML</th>\n",
       "      <th>Bus</th>\n",
       "      <th>Com</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>Viz</th>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.282906</td>\n",
       "      <td>0.015144</td>\n",
       "      <td>0.270820</td>\n",
       "      <td>0.328538</td>\n",
       "      <td>0.437584</td>\n",
       "      <td>0.368496</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>CS</th>\n",
       "      <td>0.282906</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.215316</td>\n",
       "      <td>0.101657</td>\n",
       "      <td>0.481906</td>\n",
       "      <td>0.107712</td>\n",
       "      <td>0.185016</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Math</th>\n",
       "      <td>0.015144</td>\n",
       "      <td>0.215316</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.670016</td>\n",
       "      <td>0.272858</td>\n",
       "      <td>-0.044132</td>\n",
       "      <td>-0.037995</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Stats</th>\n",
       "      <td>0.270820</td>\n",
       "      <td>0.101657</td>\n",
       "      <td>0.670016</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.321812</td>\n",
       "      <td>0.201824</td>\n",
       "      <td>0.114225</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>ML</th>\n",
       "      <td>0.328538</td>\n",
       "      <td>0.481906</td>\n",
       "      <td>0.272858</td>\n",
       "      <td>0.321812</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.117302</td>\n",
       "      <td>0.083175</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Bus</th>\n",
       "      <td>0.437584</td>\n",
       "      <td>0.107712</td>\n",
       "      <td>-0.044132</td>\n",
       "      <td>0.201824</td>\n",
       "      <td>0.117302</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.589699</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Com</th>\n",
       "      <td>0.368496</td>\n",
       "      <td>0.185016</td>\n",
       "      <td>-0.037995</td>\n",
       "      <td>0.114225</td>\n",
       "      <td>0.083175</td>\n",
       "      <td>0.589699</td>\n",
       "      <td>0.000000</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            Viz        CS      Math     Stats        ML       Bus       Com\n",
       "Viz    0.000000  0.282906  0.015144  0.270820  0.328538  0.437584  0.368496\n",
       "CS     0.282906  0.000000  0.215316  0.101657  0.481906  0.107712  0.185016\n",
       "Math   0.015144  0.215316  0.000000  0.670016  0.272858 -0.044132 -0.037995\n",
       "Stats  0.270820  0.101657  0.670016  0.000000  0.321812  0.201824  0.114225\n",
       "ML     0.328538  0.481906  0.272858  0.321812  0.000000  0.117302  0.083175\n",
       "Bus    0.437584  0.107712 -0.044132  0.201824  0.117302  0.000000  0.589699\n",
       "Com    0.368496  0.185016 -0.037995  0.114225  0.083175  0.589699  0.000000"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from matplotlib import pyplot as plt\n",
    "\n",
    "#Get correlation and 0 out the diagonal (for plotting purposes)\n",
    "c_mat = dpro.corr()\n",
    "for i in range(c_mat.shape[0]):\n",
    "    c_mat.iloc[i,i] = 0\n",
    "\n",
    "fig, ax = plt.subplots()\n",
    "heatmap = ax.pcolor(c_mat, cmap=plt.cm.RdBu)\n",
    "\n",
    "#Set the tick labels and center them\n",
    "ax.set_xticks(np.arange(c_mat.shape[0])+0.5, minor=False)\n",
    "ax.set_yticks(np.arange(c_mat.shape[1])+0.5, minor=False)\n",
    "ax.set_xticklabels(c_mat.index.values, minor=False)\n",
    "ax.set_yticklabels(c_mat.index.values, minor=False)\n",
    "plt.show()\n",
    "c_mat"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<p>We can see a range of correlations, while we also see two sets of strongly correlated features. These relationships are between \"business/communication\" and \"math/stats.\" It is perhaps not surprising that students that rank themselves on one aspect of each of these sets might rank themselves highly on the other. We can also see that these two groups of correlated features are uncorrelated with each other. From this we can certainly sense that distinct segments of the student population might be exist.\n",
    "<br><br>\n",
    "\n",
    "## Latent Variables\n",
    "\n",
    "With this range of correlation in the data, we might wonder whether certain latent features might exist that can explain the above observations. A latent feature (or variable) is described by  <a href=\"http://en.wikipedia.org/wiki/Latent_variable\">Wikipedia</a> as: \"...latent variables (or hidden variables, as opposed to observable variables), are variables that are not directly observed but are rather inferred (through a mathematical model) from other variables that are observed (directly measured). As we see above, students rank themselves very similarly in \"math\" and \"stats\". Both \"math\" and \"stats\" are the observed feature. The latent feature might be some sort of intellectual capacity for abstraction and logic. This hidden feature is of course manifested, and thus observed, in the form of skill in two related academic disciplines. <br><br>\n",
    "\n",
    "One way to detect and define the latent features is through a decomposition of the observed features. Our student survey results are stored in a matrix $X$. Ideally, latent features will all be independent, and each observed feature might be a linear combination of the latent features. One straightfoward mechanism to to mathematically arrive at the properties just described is via the singular value decomposition. See the notebook titled \"Lecture_PhotoSVD_3\" to explore SVD and an example of a potential use case.<br><br>\n",
    "For our exploratory analysis of the survey data, we'll use the SVD to define independent features (basically, latent features).<br><br>\n",
    "This starts with the basic decomposition. We'll also generate a scree plot to get a sense of how important the various latent features are to the overall distribution of the data.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/Users/briand/anaconda/envs/py35/lib/python3.5/site-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Passing one of 'on', 'true', 'off', 'false' as a boolean is deprecated; use an actual boolean (True/False) instead.\n",
      "  warnings.warn(message, mplDeprecation, stacklevel=1)\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAX0AAAEWCAYAAACKSkfIAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAAIABJREFUeJzt3XmcXFWd///Xu7uzkAUCJGAgkIRF\nEFABA7gA4rAIyAAzOBpQBL8wEUbU2YUZv8Lg6I9ZHNSvyCZIGNlBnMgiIE5AVkkEkd0kJCSBkJAQ\nIAlZuvvz++OcSm4q1Wuqu7q73s9HOl33nLt87q3qT5177q1TigjMzKw+NNQ6ADMz6z1O+mZmdcRJ\n38ysjjjpm5nVESd9M7M64qRvZlZHnPSt5iSdLumhKq3rc5Lurca6OtjOBEkhqamnt9UZkq6R9K+1\njsP6Pid9qzpJcyUdUZieLOlNSR+vRrKUdLCkRyS9JWmZpIclHQAQEddFxFHV2I/eIunDklZKGlGh\n7klJ59Q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+75/IW0kB1ldwJfEzSlsBngNsiovSG8wlJj0v6A/AnwN5d\niOUo4Nw8ZMZ0YCiwc1d2xga2ATH2jvVLraRkd7+kf4qI77Qzb6mfu4U2XrO5L/xu4G5Jr5OuDdzf\nxnpK69qigxib2bhhNLR8htzdcwTwkYhYlbtZSvOtLiTy8njflfRL0vWHycDf5vUNBX5E+naq+ZIu\nqLTdstiK9QJOiogXO9g3q1Nu6VvNRMQq0rdGfU5SqcX/DjCyK+uRtH/uIkFSA/ABoFPfOpQv8r4j\n6aBcNLlQPRfYN98dtBOVhxHeCngzJ/w9gQ93IfQbSMl+e6B0plFK4G8ofYdBW3frzAU+lB+fVCi/\nB/hK6TpAO11dVqec9K2mImIZabz7b0g6njSu/D/ki5C7tr/0etsBv8gXYJ8mtYJ/2P4iGzkDuDJ3\niQwH3srlDwMvk4bk/QHwuwrL/hJokvQ8cBGpi6ez7iPddXRT5JEP85vQlaQhi+8hDRteyb8A31f6\ncvLi2cS3SF8R+bSkZ/O02XoeZdPqnqQRpe/VlXQu6Yvgv1bjsMx6hPv0zeBTks4j/T3MA06vbThm\nPcctfTOzOuI+fTOzOuKkb2ZWR5z0zczqiJO+mVkdcdI3M6sj/z8Y3fvJI3Cm5gAAAABJRU5ErkJg\ngg==\n",
      "text/plain": [
       "<Figure size 600x400 with 2 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "import sys\n",
    "import course_utils as bd\n",
    "\n",
    "U, sig, Vt = np.linalg.svd(dpro, full_matrices=False)\n",
    "\n",
    "bd.plotSVD(sig)\n",
    "\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<p>This is a fairly extreme outcome. Most of the data can be explained by the first singular vector and value. We can guess that this first (and very dominant) latent feature might be related to having self-reported business/communication skills or math/stats skills. Remember from the above correlations, that this is almost an either/or scenario.<br><br>\n",
    "So while we have good evidence that skills based segments exist, we have no principled way to identify them right now. Fortunately, there are tools to solve this problem.\n",
    "</p>\n",
    "\n",
    "\n",
    "## Clustering Examples\n",
    "<p><a href=\"http://scikit-learn.org/stable/modules/clustering.html\">Clustering</a> can be performed using the <a href=\"http://scikit-learn.org/stable/modules/classes.html#module-sklearn.cluster\">sklearn.cluster</a> library. We'll show two examples below, one using <a href=\"http://scikit-learn.org/stable/modules/generated/sklearn.cluster.KMeans.html#sklearn.cluster.KMeans\">sklearn.cluster.kmeans</a> for K-Means clustering, and one using <a href=\"http://docs.scipy.org/doc/scipy-0.14.0/reference/cluster.hierarchy.html\">scipy.cluster.hierarchy</a> for hierarchical clustering. Note, in the latter case we'll demo scipy not sklearn here because scipy supports plotting the cluster dendrograms better.\n",
    "\n",
    "\n",
    "</p>\n",
    "\n",
    "\n",
    "### K-means clustering\n",
    "<p>\n",
    "One decision we have to make is what data to use. We have our original feature matrix $X$, but we have also computed the SVD of $X$, which gives us an orthonormal matrix of user latent features $U$. If we use $U$, the features are normalized and independent. The normalization is important because clustering methods use distance metrics that are sensitive to scale. The indepedence means each feature will hold equal weight in the clustering. This may or may not be a good thing. For example, if we use $U$, we know that the fist singular vector is by far the most important. We might want this feature to dominate the clustering process. The good news is, we can weight the columns in $U$ using the singular values, i.e., cluster on $U\\Sigma$ instead of $U$.<br><br>\n",
    "A subtle corollary of this last point is using $U$ or $U\\Sigma$ gives us a great tool to overcome the curse of dimensionality. If $X$ happend to be very high dimensional, but most of the sum-of-squares can be explained by a smaller first-$k$ subset of the singular vectors, then we might be better off clustering on $U_k$ or $U_k\\Sigma_k$ (the rank-$k$ approximations). \n",
    "<br><br>\n",
    "We start with a basic clustering. It is fairly easy to implement. In general, you'll always get a result, and a major question is always how do you know if it is a good fit? Ultimately, this becomes both a qualitative and quantitative issue. Some criteria might be:<br>\n",
    "<ul>\n",
    "    <li>Do the clusters make sense? (this is decidedly qualitative)</li>\n",
    "    <li>Are the clusters well balanced? (a quantitative attribution to a potentially arbitrary need).</li>\n",
    "</ul><br>\n",
    "A similar question on quality, is what is the optimal $k$. For choosing $k$, we think of the above two questions, but we can also see how well the clusters minimize the within cluster sum of squares. This criteria is also called 'inertia' and is defined as:<br><br>\n",
    "\n",
    "<center>$inertia = \\sum\\limits_{j=1}^k\\:\\sum\\limits_{x_i \\in C_j}|x_i-\\mu_j|^2$\n",
    "</center>\n",
    "\n",
    "\n",
    "\n",
    "</p>"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "KMeans(algorithm='auto', copy_x=True, init='k-means++', max_iter=300,\n",
       "    n_clusters=2, n_init=5, n_jobs=1, precompute_distances='auto',\n",
       "    random_state=None, tol=0.0001, verbose=0)"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from sklearn import cluster\n",
    "\n",
    "#Note - most of these input parms, except the first, help ensure stability of the fit\n",
    "km = cluster.KMeans(n_clusters = 2, init = 'k-means++', n_init = 5)\n",
    "km.fit(dpro)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<p>Let's loop through different values of k to get the inertia as a function of k. We'll also compute another metric that has been used to evaluate clusters where true cluster labels are not known (which is usually the case). This is called the Silhoette Coefficient. More details can be found <a href=\"http://scikit-learn.org/stable/modules/clustering.html#clustering-evaluation\">here</a></p>"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA3wAAAIYCAYAAAA2Bu7aAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAAIABJREFUeJzs3X28Z2VdL/zP10G08gGQORzkweEo\n2sHOHXqPkKcnjyYPamInH/CYolmT90vu8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3JvmtJH+20v1jXt/T3Y9OcmqSFw9TLNjHVdX/3979\nvNgUhgEc/z6ZYTErpUgoyd5CUjYWTEhTZEHyK8ooa4WFYmPDlmLshlAmFiL/gFI2iIUFRZopFhIb\nPBbn0O12z+TX3HMc38/mzpzzLt7b0/Oe97n3fd87GxgBrve4ba79A7LYm+D+hH9IRByn+E3e8Yom\njqfNcQ5YBqwA3gBn6u2OftEOpv92z1yr0XTz/b/5bLPga6CIGKQI/nhm3ui+n5nvM/ND+fdtYDAi\n5vW5m+qSma/L1ylggmKJS6fXwOKO/xeV11SvjcDDzJzsvmGuNdrk9yXR5etUjzbmXANFxF5gM7Az\nKw4S+InxVH2SmZOZ+SUzvwIX6B0Lc62BImIA2ApcrWpjrtWnYr4/I882C76GKddajwFPM/NsRZsF\nZTsiYhVFHN/2r5fqFhFD5aZbImIIGAYedzW7BeyOwmqKDdRvUN0qP/001xrtFvD9ZLI9wM0ebe4C\nwxExt1yGNlxeU00iYgNwBBjJzI8VbX5mPFWfdO0130LvWDwAlkfE0nLVxHaKHFW91gHPMvNVr5vm\nWn2mme/PyLNt4M+7rL9sDbALeNRxhO4xYAlAZp4HtgGHIuIz8AnYXvUpqfpmPjBR1gYDwOXMvBMR\no/AjbrcpTuh8DnwE9tXUV5XKB9x64GDHtc6YmWsNEBFXgLXAvIh4BZwATgPXImI/8JLiUAIiYiUw\nmpkHMvNdRJyimIwCnMzM3zmQQr+hIm5HgTnAvXK8vJ+ZoxGxELiYmZuoGE9reAv/nYqYrY2IFRRL\ny15QjpedMStPXT1MMemcBVzKzCc1vIX/Uq+4ZeYYPfanm2uNUTXfn5Fnmz/LIEmSJEkt5ZJOSZIk\nSWopCz5JkiRJaikLPkmSJElqKQs+SZIkSWopCz5JkiRJaikLPkmSJElqKQs+SZIkSWopCz5JkiRJ\naqlvv/2mkqbxrDMAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 1500x900 with 2 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "from sklearn.metrics import pairwise_distances\n",
    "from sklearn import metrics\n",
    "\n",
    "inert_k = []\n",
    "sil_k = []\n",
    "\n",
    "for k in range(2, 20):\n",
    "    km = cluster.KMeans(n_clusters = k, init = 'k-means++', n_init = 5)\n",
    "    km.fit(dpro)\n",
    "    inert_k.append(km.inertia_)\n",
    "    sil_k.append(metrics.silhouette_score(dpro, km.labels_, metric = 'euclidean'))    \n",
    "\n",
    "fix = plt.figure(figsize = (15, 9))\n",
    "ax1 = plt.subplot(211)\n",
    "plt.bar(range(2,20), inert_k, 0.35)\n",
    "plt.title('Inertia by k')\n",
    "plt.tick_params(axis='x',which='both',bottom=False,top=False,labelbottom=False)\n",
    "ax1 = plt.subplot(212)\n",
    "plt.bar(range(2,20), sil_k, 0.35)\n",
    "plt.title('Silhoette Coefficient by k')\n",
    "\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<p>We can see that increasing $k$ tends to continually decrease the inertia. But at the same time, our Silhouette Coefficient does not increase. We should always expect inertia to decrease as $k$ increases, but the other metric shows that this does not exactly result in good clusters.\n",
    "<br><br>\n",
    "One method for determining a good value of $k$ is called the <a href=\"http://en.wikipedia.org/wiki/Determining_the_number_of_clusters_in_a_data_set#The_Elbow_Method\">elbow method</a>. This amounts to looking at the first plot above, and determining at what $k$ the within cluster sum of squares starts to level off. This is somewhat subjective, but tends to be useful.\n",
    "</p>"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<p>Next we'll look at a qualitative evaluation. For a small range of $k$, we first look at the distribution of clusters.\n",
    "</p>"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA1kAAAKACAYAAABuR7JgAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcm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3o6L9EvDtqpr54WvViq3Aw8v/78kW4BtV9f1uS+rW0NqqgbU9Q2tHbBtm1xDP3X8KPND8\n49fLwB+Pe4dTM4S7JEmSJE2DaeouKEmSJEm9Z8iSJEmSpBYZsiRJkiSpRYYsSZIkSWqRIUuSJEmS\nWmTIkiRJkqQWGbIkSZIkqUWGLEmSJElq0f8BoVn1N0RoQKUAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 1200x900 with 6 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "fig = plt.figure(figsize = (12, 9))\n",
    "for k in range(2, 8):\n",
    "    km = cluster.KMeans(n_clusters = k, init = 'k-means++', n_init = 5)\n",
    "    km.fit(dpro)\n",
    "    ax = fig.add_subplot(3, 2 , k - 1)\n",
    "    plt.hist(km.labels_)\n",
    "    plt.title('k={}'.format(k))\n",
    "\n",
    "fig.tight_layout()\n",
    "\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<p>We can see that the clusters are actually pretty well balanced for all values of $k$. Each choice of $k$ certainly has a clear maximum, but the differences aren't too extreme.<br><br>\n",
    "The next thing we might try to do then is define the clusters based on the centroids. The centroid essentially describes the average student within each cluster. We can use that to better understand and then define the clusters. For comparison's sake, we'll also show this for clusters derived using $U$ or $U\\Sigma$. When doing this though, we have to remember to report the cluster means in the original $X$ space for us to be able to interpret it. To project the $U\\Sigma$ centroids back into the $X$ space, we just right multiply the centroid by $V^T$ from the SVD.<br><br>\n",
    "Another thing we do here is we subtract the mean of $X$ from each centroid. This is because we're more interested in how each cluster differs from the average student profile.\n",
    "</p>"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/Users/briand/anaconda/envs/py35/lib/python3.5/site-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance.  In a future version, a new instance will always be created and returned.  Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance.\n",
      "  warnings.warn(message, mplDeprecation, stacklevel=1)\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAtMAAAE/CAYAAACEmk9VAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAAIABJREFUeJzt3Xm4ZHV95/H3h2YVG5AtIItNgESB\nsKUVRUa6tYkiEBOCCCpIjIP4iGDU0XFwROKCkUQEiWEYFFAUFQ1DlCWgoXEbxQYRWcwEJIZGkUWg\nAQGb7u/8Uee2l6bv7erDre32+/U89+k6p06d860fRdWnfvU7v5OqQpIkSdKqW2PQBUiSJEmjyjAt\nSZIktWSYliRJkloyTEuSJEktGaYlSZKklgzTkiRJUkuGaUlaDSWZlaSSrDmdjiVJ/WaYlrRaSDI/\nyf1J1unhMV6V5Poki5Lcm+Rfk2zXq+MNkyR/kOTC5nk/mOSGJO9IMmMKjzE/yZuman+SNBUM05Km\nvSSzgP8CFPCnPTrGDsBngXcCGwLbAf8ALJnCYyTJ0L1vJ9ke+AFwB/BHVbUh8GpgNjBzkLWNN5XB\nXpLGDN2bsiT1wJHA94FzgTeMrUyyV5K7xoesJH+e5Ibm9npJzmt6tG9J8u4kCyc4xu7A7VX1zep4\nqKq+WlX/2exrRpL/keS2JA8luTbJNs19eyf5YdOj+8Mke4+rZ36SDyf5LvAb4PeTbJjk00l+meTO\nJB8aew5JdkhydbOve5N8aSVt88Ykv2j29a5mH1sk+U2STcbVsWeSe5KstYJ9nAR8r6reUVW/BKiq\nf6uq11bVA8tvnOQ/kswbt/yBJOc3t9dNcn6S+5I80LTH7yX5MJ0vRGckeTjJGc32z01yZZJfJ/m3\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9ug3YHXfcwTbbbNPqsZ///Oe56qqrmDlzJkuXLmWNNdbg/e9/P/Pnzwfg\nzDPPZIcdduDss8/mV7/6FQcffDDf/e53AXjOc57DmWee+aT93XfffTzrWc9atrzRRhvx61//ut0T\nG5Bhas/pYBjbc8mSJRx33HGccMIJreoapGFrzyVLlvDSl76Um266iZNPPrn185IkTR3D9CraZptt\nuPHGGyfdZvxJQOOvR/OJT3yC4447jsWLF3PMMcewzz77POlxP/nJT/je977H5ZdfDnR+Yh6z9957\nP+U4G2+8MQ888MCy5QcffJCNN9541Z7QgA1Te04Hw9ieb37zm9l///2ZN2/S6zgNpWFrzxkzZnD1\n1Vdz33338fznP59DDz2UDTfccJWflzSMVnZ+jTSsHOaxig444AC+9rWvcdttty1bd+WVVz5pm403\n3piFCxcCcO211y5bv+eee3LOOefw0Y9+lOOPPx6ANddck6VLlwKw8847c+SRRzJ//nzmz5/Pdddd\nt+yxKxoHveOOO3L77bezaNEiFi1axO23384OO0zJrIN9M0ztOR0MW3u+613vYsstt+TYY4+dmifY\nZ8PUnosXL2bJkiUArL/++qy77rqsu+66U/RMJUlt2TO9ijbccEPOP/983vrWt/LYY4/x29/+lle/\n+tXst99+y7bZb7/9OPXUU/mTP/kT9thjj2XrjzjiCO69914ee+wx3vrWtwJwyCGHcMABB7D//vvz\nlre8hbe97W3MnTsXgNmzZ3PKKadMWMuMGTM4+eSTl43hPPnkk0cuJA5TewK8733v47LLLuOuu+5i\n3rx5XHzxxay//vo9eOa9MUztuWDBAk477TRe/OIXM2fOHDbbbDMuvPDCHj3z3him9rz77rs5/PDD\nmTFjBo8//jjvf//7WWeddXr0zCVJ3UqtbJ6tITJ79uxasGDBsuVbbrmF5z3veQOsSJKGi++LkjQ1\nklxbVSud09VhHpIkSVJLhmlJkiSpJcO0JEmS1NLIh+lHH32UURr3LUm9UFU8+uijgy5DklY7Iz2b\nx5Zbbsmdd97J4sWLB12KJA3cWmutxZZbbjnoMiRptTLSYXrsMtqSJEnSIIz8MA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bq33rjPwQBvqKoldE7Y/zJwI3A7neFM0PmieHEzTDLAO/pd8Cia\n5DPy7XTec35M57yud1fVXc0Xm9WGV0CUJEmSWnKYhyRJktSSYVqSJElqyTAtSZIktWSYliRJkloy\nTEuSJEktGaYlSZKklgzTkiRJUkuGaUmSJKml/w8/ffiq6NR8YAAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 1200x500 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAtMAAAE/CAYAAACEmk9VAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAAIABJREFUeJzt3Xm8ZGV95/HPl2YVWWQxIIJNwETB\nyJJWFFG6tQkiEpWggIoSYxBHRKNOHAdHIC440UhANAyDQRTFNQwqi1to3KIIiMiiESRKI6gg0Igs\nTfdv/jinsWj63q4+favq1u3P+/W6L+pUnTrnV08XVd96znOek6pCkiRJ0qpba9QFSJIkSePKMC1J\nkiR1ZJiWJEmSOjJMS5IkSR0ZpiVJkqSODNOSJElSR4ZpSRqiJLOTVJK1Z9K+hinJBUleOeo6JAkM\n05IGLMmCJLcnWW+A+3hBkiuSLEpya5J/T7L9oPY3nST5kySfbV/3nUmuTPKmJLOmcB8Lkrx6qrbX\nbvO/ksxf7r7Dk3xrZc+tqv2q6syprKenhv+Z5IYkv0uyMMmn2/tPTfKxFay/S5L7kmyW5Lgki5Pc\n1f79Z5JTkmw9iFolTQ+GaUkDk2Q28EyggL8c0D52BD4GvBnYBNge+BCwZAr3kSTT7vMyyQ7A94Ab\ngT+rqk2AFwNzgI1GWVuvqQz2g9T2dh8GzK+qR9K049fbh88EDkyy4XJPOwz4UlX9tl3+dFVtBGwG\nvAjYCrjMQC3NXN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JkjoyTEuSJEkdGaYlSZKkjgzT\nkiRJUkeGaUmSJKkjw7QkSZLUkWFakiRJ6sgwLUmSJHVkmJYkSZI6MkxLkiRJHRmmJUmSpI7WHnUB\nq2Px4sUsXLiQe++9d9SlSNLIrb/++jz2sY9lnXXWGXUpkrTGGOswvXDhQjbaaCNmz55NklGXI0kj\nU1XcdtttLFy4kO23337U5UjSGmOsh3nce++9bL755gZpSWu8JGy++eYeqZOkIRvrMA0YpCWp5eeh\nJA3fWA/zeJip+iKpmvThK6+8kre+9a3cc8893H///Rx00EG86U1vYscdd+S6665bpV2dfPLJHH30\n0Z1LvfDCCzn++OMBOO6449h33307b2t5CxZMTXvOnTs+7fmqV72KCy64gP3335/TTz+983ZWZEhv\nz2nTngsXLuRlL3sZS5cuZenSpZx00knMmTOn07ZWJMdPTYPWsePz/pw/fz4PPPAAv/vd73jzm9/M\noYce2nlbkqSpkVrZN/M0MmfOnLr00ksfXL722mt54hOf+IcVhpBW7rzzTp75zGdyzjnnsMMOO1BV\nfOUrX2Hfffft9OW6qs9ZsmQJs2bNevD2brvtxje+8Q0A9t57by6//PIHH19dwwjT06k9AW666SZ+\n+tOfctZZZ41lmJ5O7XnnnXdy33338ehHP5prrrmG17zmNXzzm99cpf1PZhhhejq1J8D999/Puuuu\ny6JFi9hll1244YYbHvach30uSqPQ5QNvjPKI1gxJLquqlfYCjf0wj2E777zzOOCAA9hhhx2A5rDq\n8r3BH/3oR3nXu94FNL1zc+fOBeDEE09kjz32YN68eZx00kl88pOf5KabbmLu3Lm8+93vZvHixbz6\n1a9m3rx57LXXXlxyySUAHH744Rx55JE8//nPf0gYue6669h+++3ZdNNN2XTTTZk9e/Yqf7mP2nRq\nT4BtttlmwK94sKZTe26yySY8+tGPBmC99dZj7bXH70DYdGpPgHXXXReAu+++m5133nmQL12S1Kfx\n+3YbsRtvvJFtt92203M/8YlPcNFFF7HRRhuxdOlS1lprLd7xjnewYMECAE499VR23HFHTj/9dH71\nq19x4IEH8u1vfxuAxz3ucZx66qkP2d5tt93Gox71qAeXN910U3772992e2EjMp3acyaYju25ZMkS\njj76aI455phOdY3SdGvPJUuW8OxnP5urr76aE044ofPrkiRNHcP0Ktp222256qqrJl2n9ySg3mE0\n//zP/8zRRx/N4sWLOfLII9lrr70e8rwf/ehHfOc73+HCCy8EmkPMy+y5554P289mm23GHXfc8eDy\nnXfeyWabbbZqL2jEplN7zgTTsT1f85rXsN9++zF//vxVei3TwXRrz1mzZnHxxRdz22238ZSnPIWX\nvOQlbLLJJqv8uqSBc8iG1iAO81hF+++/P1/84he5/vrrH7zvq1/96kPW2WyzzVi4cCEAl1122YP3\n77777pxxxhm8973v5Q1veAMAa6+9NkuXLgVg55135hWveAULFixgwYIFXH755Q8+d0XjoB//+Mdz\nww03sGjRIhYtWsQNN9zAjjvuOHUvdgimU3vOBNOtPd/ylrew9dZbc9RRR03NCxyy6dSeixcvZsmS\nJQBsuOGGrL/++qy//vpT9EolSV3ZM72KNtlkE8466yxe97rXce+993L//ffz4he/mH322efBdfbZ\nZx9OPPFE/uIv/oLddtvtwfsPO+wwbr31Vu69915e97rXAXDQQQex//77s99++/Ha176W17/+9cyb\nNw+AOXPm8L73vW/CWmbNmsUJJ5zw4BjOE044YexC4nRqT4C3v/3tXHDBBdxyyy3Mnz+fc889lw03\n3HAAr3wwplN7XnrppZx00kk84xnPYO7cuWy55ZZ89rOfHdArH4zp1J6//vWvOfTQQ5k1axb33Xcf\n73jHO1hvvfUG9MolSf2aWbN5SNIazs9FSZoazuYhSZIkDZhhWpIkSerIMC1JkiR1NPZh+p577mGc\nxn1L0iBUFffcc8+oy5CkNc5Yz+ax9dZbc9NNN7F48eJRlyJJI7fOOuuw9dZbj7oMSVqjjHWYXnYZ\nbUmSJGkUxn6YhyRJkjQqhmmIcVPyAAAGiElEQVRJkiSpI8O0JEmS1NFYXQExyW+An4+6jhHbArh1\n1EWsQWzv4bK9h882Hy7be7hs7+Gaae39uKracmUrjVWYFiS5tJ9LW2pq2N7DZXs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HVkmJYkSZI6MkxLkiRJHRmmJUmSpI4M05IkSVJH/x/wFyTq/kc4lgAAAABJ\nRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 1200x500 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "#Clustering on original X space\n",
    "km = cluster.KMeans(n_clusters = 4, init = 'k-means++', n_init = 10)\n",
    "km.fit(dpro)\n",
    "cols = ['r', 'y', 'b', 'g']\n",
    "\n",
    "fig = plt.figure(figsize = (12, 5))\n",
    "for i, cc in enumerate(km.cluster_centers_):\n",
    "    w = 0.15\n",
    "    ax = fig.add_subplot(1, 1, 1)\n",
    "    plt.bar(np.arange(len(cc)) + i*w, cc - dpro.mean(), w, color = cols[i], label='Cluster {}'.format(i))\n",
    "    ax.set_xticklabels(dpro.columns.values)\n",
    "    ax.set_xticks(np.arange(len(cc))+2*w)\n",
    "\n",
    "plt.ylabel('Mean Adjusted Score')\n",
    "plt.title('Avg Scores by Cluster')\n",
    "plt.legend(loc = 3, ncol = 4, prop={'size':9})\n",
    "   \n",
    "#Now cluster on the SVD space\n",
    "km_u = cluster.KMeans(n_clusters = 4, init = 'k-means++', n_init = 10)\n",
    "#km_u.fit(pd.DataFrame(U.dot(diag(sig))))\n",
    "km_u.fit(pd.DataFrame(U))\n",
    "cols = ['r', 'y', 'b', 'g']\n",
    "\n",
    "fig = plt.figure(figsize = (12, 5))\n",
    "for i, cc in enumerate(km_u.cluster_centers_):\n",
    "    w = 0.15\n",
    "    ax = fig.add_subplot(1, 1, 1)\n",
    "    #plt.bar(np.arange(len(cc))+i*w, cc.dot(Vt), w, color = cols[i], label='Cluster {}'.format(i))\n",
    "    plt.bar(np.arange(len(cc)) + i*w, cc.dot(np.diag(sig).dot(Vt)) - dpro.mean(), w, color = cols[i], label='Cluster {}'.format(i))\n",
    "    ax.set_xticklabels(dpro.columns.values)\n",
    "    ax.set_xticks(np.arange(len(cc))+2*w)\n",
    "\n",
    "plt.ylabel('Mean Adujsted Score')\n",
    "plt.title('Avg Scores by Cluster Using SVD')\n",
    "plt.legend(loc = 3, ncol = 4, prop={'size':9})\n",
    "\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<p>In the above we chose $k=4$. Let's assume we did this because we want to assign students to groups of 4 to work together in a study group. Our goal would be to maximize the skill diversity of each group, so we'd cluster into 4 clusters and assign one student per cluster into each group. If we look at the above plots, we can get a sense of how the average person within each group differs from the average student in the class. When we make our profiles, we'll use the top chart, as the clusters here tend to follow a more intuitive line of reasoning (note the subjectivity here)!\n",
    "\n",
    "<br><br>\n",
    "<b><u>Student Profiles</u></b>\n",
    "<ul>\n",
    "    <li><u>Cluster 0</u> appears to be strongest in business, communication and vizualization. </li>\n",
    "    <li><u>Cluster 1</u> is the math/stats group.</li>\n",
    "    <li><u>Cluster 2</u> in general is the group that tends to rate itself low on all dimensions!</li>\n",
    "    <li><u>Cluster 3</u> in general is the group that tends to be very confident on all technical subjects!</li>\n",
    "    \n",
    "</ul>\n",
    "</p>\n",
    "\n",
    "### Hierarchical Clustering\n",
    "<p>\n",
    "In the above we showed how to compute and evaluate K-Means, and we also came up with a use case for the clustering. The above use case (i.e., putting students into study groups of size 4) essentially dictated the choice of $k$. In a more general use case, we might not have such an application specific best $k$. One way we can be more general is to use hiearchical clustering. In this type of clustering, the individual clusters are embedded in a taxonomy. We can use this taxonomy to see if there are any natural values of $k$ that make the most sense. We can also use it to ensure that each final cluster we choose is well balanced in size. Additionally, we can use this to get a sense of any outlier clusters (those with very small counts).<br><br>\n",
    "\n",
    "Using Scipy isn't as straightforward as using Sklearn, but again, scipy has a good procedure for displaying the dendrogram.\n",
    "\n",
    "</p>"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAsoAAAGpCAYAAACUHhApAAAABHNCSVQICAgIfAhkiAAAAAl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rgQ3AxyPihcAhEXFWRJwPHArs1Vfs5Pr3+cCFmXlN3SN9BXD/+n9X\nZebX69sfBh4zreqDgD2Br0fEOuAFwG7Az4FbgfdHxNOBW0Z2ZyVpgXOMsiSNWWZuAtYAa+pg/OfA\nPsDyzLwqIt4IbNtX5Lb69x19t3t/987j0yfFn/53AKdl5pHT2xMRBwCPB54J/CVVUJekrZ49ypI0\nRhGxR0Ts3rdoCri0vn1dPW74mQ02/YD6QkGAo4CvTfv/mcDBEfHguh33iIiH1PXdMzM/C7yC6tu7\nJEnYoyxJ47YD8M6IWArcDlxONQzjZ8AFwE+Acxps91LgZRHxAeAi4D39/8zMDfUQj49GxN3rxa8H\nbgJOiohtqXqdj2lQtyRtkfwKa0la4CJiGXBKfSGgJGlEHHohSZIkFdijLEmSJBXYoyxJkiQVGJQl\nSZKkAoOyJEmSVGBQliRJkgoMypIkSVLB/we3BWxmvoBUBQAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 1200x600 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "from scipy.spatial.distance import pdist, squareform\n",
    "from scipy.cluster.hierarchy import linkage, dendrogram\n",
    "\n",
    "#This function gets pairwise distances between observations in n-dimensional space.\n",
    "dists = pdist(dpro)\n",
    "\n",
    "#This function performs hierarchical/agglomerative clustering on the condensed distance matrix y.\n",
    "links = linkage(dists)\n",
    "\n",
    "p = 46\n",
    "#Now we want to plot the dendrogram\n",
    "fig = plt.figure(figsize = (12, 6))\n",
    "den = dendrogram(links, truncate_mode = 'lastp', p = p)\n",
    "plt.xlabel('Samples')\n",
    "plt.ylabel('Distance')\n",
    "plt.suptitle('Samples clustering', fontweight='bold', fontsize=14);\n",
    "\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<p>Let's try to understand the output of the linkage function. The first few records look like:\n",
    "</p>"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[ 16.        , 121.        ,   1.73205081,   2.        ],\n",
       "       [ 93.        , 110.        ,   1.73205081,   2.        ],\n",
       "       [ 13.        , 159.        ,   1.73205081,   3.        ],\n",
       "       [ 35.        , 157.        ,   1.73205081,   2.        ],\n",
       "       [ 92.        , 130.        ,   1.73205081,   2.        ]])"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "links[:5,:]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<p>The way we read this is as follows:\n",
    "<ul>\n",
    "    <li>At the lowest level, each record is assigned to its own cluster, and the cluster number is just its original index.</li>\n",
    "    <li>The linkage function returns an (n-1) by 4 matrix where:</li>\n",
    "        <ul>\n",
    "            <li>The ith row corresponds to a new cluster, whose id=n+i</li>\n",
    "            <li>The L[i,0] and L[i,1] columns are the two clusters that are joined to make cluster (n+i)</li>\n",
    "            <li>The column L[i, 2] is the distance between L[i,0] and L[i,1]</li>\n",
    "            <li>The last column is the final size of cluster (n+i)</li>\n",
    "        </ul>\n",
    "</ul><br>\n",
    "In the above few rows, we see that user 19 and 30 were combined to make cluster 46. Then, we see in the 5th row that this cluster 46 was joined with user 0 to make cluster 50. If we look up at the dendrogram we can see these 3 students being combined into a single cluster.\n",
    "\n",
    "</p>"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 191,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "#Note code to follow"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<p>If we want to use a hiearchical clustering technique to get a specific number of clusters, we can use <a href=\"http://scikit-learn.org/stable/modules/generated/sklearn.cluster.Ward.html#sklearn.cluster.Ward\">sklearn.cluster.Ward</a> for a concise process that returns exactly what we need.  We'll continue with our student study group example and choose $k=4$.\n",
    "\n",
    "\n",
    "</p>"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "AgglomerativeClustering(affinity='euclidean', compute_full_tree='auto',\n",
       "            connectivity=None, linkage='ward', memory=None, n_clusters=4,\n",
       "            pooling_func=<function mean at 0x10c8ca950>)"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ka = cluster.AgglomerativeClustering(n_clusters = 4)\n",
    "ka.fit(dpro)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<p>Let's do another plot of mean adjusted centroids to get a sense of what each cluster represents. Sklearn.cluster.Ward does not return the centroids, so we'll have to compute this step ourselves.\n",
    "</p>"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/Users/briand/anaconda/envs/py35/lib/python3.5/site-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance.  In a future version, a new instance will always be created and returned.  Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance.\n",
      "  warnings.warn(message, mplDeprecation, stacklevel=1)\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAtMAAAE/CAYAAACEmk9VAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAAIABJREFUeJzt3Xu4XHV97/H3h3AVYxAIBbkYCrQq\nlFujWORI0FBFoBeKCCpIrQfxEcGqR48Hj0i9YKWVgmg5HBRQFBUtB5VLQUvwVsWAiFxsC1JLUOQi\nEEDAkHzPH7N23ITsncliz23n/Xqe/WTWmjXr910/hpnv/NZ3/VaqCkmS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OCDedvb3sb222/PLbfcslpNnXbaaRx77LGtQ73ssss48cQTAXjf+97Hy172stb7WtGCBVPT\nn/PmjU5/vv71r+fSSy9l//3356yzzmq9n5Xp09tzaPpz0aJFvOY1r2HZsmUsW7aMU089lblz57ba\n18rkxKnp0DphdN6f8+fP5/HHH+ehhx7i7W9/O4cddljrfUmSpsb0Sqb74IEHHuC1r30tF154Idtt\ntx1VxeWXX956f6v75bp06VJmzJix/PE73/lOvvnNbwKw9957M3/+/OXPj4Jh6k+A97///RxxxBGc\nd955rWMYpGHqz5kzZ3LBBRew2WabcdNNN/HGN76Rb33rW61jGYRh6k+ASy65hHXXXZfFixezyy67\nmExL0hAY+TKPfrv44os58MAD2W677YDOadUVR4PPOeccPvCBDwCd0bl58+YBcMopp7DHHnuwzz77\ncOqpp/K5z32OO+64g3nz5vHBD36QJUuW8IY3vIF99tmHvfbai6uvvhqAI488kqOPPpoDDjjgCcnI\nLbfcwrbbbstGG23ERhttxJw5c1Z7pGzQhqk/AbbccsseH3FvDVN/zpo1i8022wyA9dZbj7XXHr3f\n7sPUnwDrrrsuAA8//DA77rhjLw9dktSl0ft2G7Dbb7+drbfeutVrP/vZz3LllVcyc+ZMli1bxlpr\nrcV73/teFixYAMAZZ5zB9ttvz1lnncUvf/lLDjroIL7zne8A8OxnP5szzjjjCfu79957eeYzn7l8\neaONNuJXv/pVuwMbkGHqz+lgGPtz6dKlHHvssRx//PGt4hqkYevPpUuX8pKXvIQbb7yRk046qfVx\nSZKmjsn0atp666254YYbJt1m/EVANa7A9R/+4R849thjWbJkCUcffTR77bXXE1734x//mO9+97tc\ndtllQOcU85g999zzSe1svPHG3H///cuXH3jgATbeeOPVO6ABG6b+nA6GsT/f+MY3st9++zF//vzV\nOpZhMGz9OWPGDK666iruvfdenv/853PIIYcwa9as1T6ubq2qnlySZJnHatt///356le/yq233rp8\n3RVXXPGEbTbeeGMWLVoEwDXXXLN8/e67787ZZ5/Nhz/8YY477jgA1l57bZYtWwbAjjvuyBF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tn08RXg73jyD8P3A1dW1U7AgcD6k+zj\nsXGPlwJrT2mE00Tzxbagqk4AjgH+YvzzzUW07wBe2ozOXcxK+r0padoFWEBnhOmsHoc+HU30vtcU\nq6p/BTYFZgOP88QcZ/1mm8fpnNn6Ep1rCy7rc5ijasLvyEmM/7xeNm55GdPss9tkekg1o0tXAp9i\n5aPSbwZmVtWH+x3bNPUvwHpJjhpbkWTnJHsneVazvBadU7WeBWjnU8CJVfXjFdbP4rcXZh05bv2D\nwMw+xDWtNDXnO4xbtSud9+z4/nwGnesBHkjyO/y2pIzx2yXZFFirqr4MvAfYvcfhT0cTve81xZI8\nB5gB3EvnPf+8JOsl2Qh4abPN04FZVXUJ8Nd0fixq1Vb6HUnngvxXNddXzAZeTKdMdY0yrX4ZTEPn\n07l6dsWZPaAzqrQkyXXN8hnjLwzQ6qmqSvLnwD8keRed04D/SWfU4qNJ1ms2vRpwOqsWmpKZ01by\n1EeAc5O8h84I6Zgrgf/ZvMe9Qr97Twc+1iQQjwO30Cn5OAy4LMnPq2qfJD+kU69+O/Cdca8/c2w7\nOjN7nN38kIROuZNWwyTve4Ajk4w/0/XCZnt1b4Nx34MBXldVS+lcsP9F4AbgNjrlTND5oXhRUyYZ\n4G39DngUTfId+VY6nzk/onNd1zur6s7mh80awzsgSpIkSS1Z5iFJkiS1ZDItSZIktWQyLUmSJLVk\nMi1JkiS1ZDItSZIktWQyLUmSJLVkMi1JkiS1ZDItSZIktfT/AVFl/HL+UazcAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 1200x500 with 1 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "#Clustering on original X space using Hierarchical clustering\n",
    "\n",
    "cols = ['r','y','b','g']\n",
    "\n",
    "fig = plt.figure(figsize = (12, 5))\n",
    "for i in range(4):\n",
    "    w = 0.15\n",
    "    ax = fig.add_subplot(1,1,1)\n",
    "    cc = dpro[(ka.labels_==i)].mean()\n",
    "    plt.bar(np.arange(len(cc))+i*w, cc - dpro.mean(), w, color = cols[i], label='Cluster {}'.format(i))\n",
    "    ax.set_xticklabels(dpro.columns.values)\n",
    "    ax.set_xticks(np.arange(len(cc))+2*w)\n",
    "\n",
    "plt.ylabel('Mean Adjusted Score')\n",
    "plt.title('Avg Scores by Cluster')\n",
    "plt.legend(loc = 3, ncol = 4, prop={'size':9})\n",
    "\n",
    "plt.show()\n",
    "   "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<p>When we plot the 4 clusters using hierarchical clustering, we get similar conceptual groupings as we did with k-means. However, I find this latter plot more easy to interpret (remember, this is a bit subjective).\n",
    "<br><br>\n",
    "<b><u>Student Profiles using Hierarchical Clustering</u></b>\n",
    "<ul>\n",
    "\n",
    "    <li><u>Cluster 0:</u> This group has most of the math/stats experience</li>\n",
    "    <li><u>Cluster 1:</u> These are the business and strategy minded students. </li>\n",
    "    <li><u>Cluster 2:</u> These are the math/stats folks in the group.</li>\n",
    "    <li><u>Cluster 3:</u> This group is a little below average in skill across all categories (or at least is the group that underrates their own skill levels).</li>\n",
    "\n",
    "</ul>\n",
    "\n",
    "<br><br>\n",
    "So now we have to make a choice - which clustering method to use for the student profiles. One last thing to compare is the distribution of students across clusters for each method.\n",
    "</p>"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAA1oAAAEYCAYAAABFrYfQAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAAHy1JREFUeJzt3X+0JHV55/H3JwzqHmBFZYLIT42s\nBo0SnTPRaBISFGFiRDdshLgJJpCJRDa6Z3ezbNyoMdkjWde4iZhwJsiOegwYNRiS4I/ZiFESQQc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EmSpEYeCh8dlCRJkqSHFBstSZIkSWrMRkuSJEmSGrPRkiRJkqTGbLQk\nSZIkqTEbLUmSJElqzEZLkiRJkhqz0ZIkSZKkxv4/YF424bM5A0YAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 1200x400 with 3 Axes>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "\n",
    "fig = plt.figure(figsize = (12, 4))\n",
    "\n",
    "plt.subplot(1,3,1)\n",
    "plt.hist(ka.labels_)\n",
    "plt.ylim([0,20])\n",
    "plt.title('Hier: X')\n",
    "\n",
    "plt.subplot(1,3,2)\n",
    "plt.hist(km.labels_)\n",
    "plt.ylim([0,20])\n",
    "plt.title('K-means: X')\n",
    "\n",
    "plt.subplot(1,3,3)\n",
    "plt.hist(km_u.labels_)\n",
    "plt.ylim([0,20])\n",
    "plt.title('K-means: U*Sig')\n",
    "\n",
    "fig.tight_layout()\n",
    "\n",
    "\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "<p>Comparing the above methods, we see fairly even representation in the clusters. Given this result, it is reasonable to choose the clustering method that gives us a more interpretable result. \n",
    "</p>"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "anaconda-cloud": {},
  "kernelspec": {
   "display_name": "Python [py35]",
   "language": "python",
   "name": "Python [py35]"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.5.2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}
